package fr.umlv.m2.jee.pmlv.persistence.ldapLink;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.Table;

import fr.umlv.m2.jee.pmlv.persistence.cursus.Specialty;
import javax.persistence.EmbeddedId;

@SuppressWarnings("serial")
@Entity
@Table(name="User__Specialty")
public class UserSpecialty implements Serializable {
        /**The primary key of the entity. */
	@EmbeddedId
	private UserSpecialtyPK primaryKey;
	
	public void setPrimaryKey(UserSpecialtyPK primaryKey) {
		this.primaryKey = primaryKey;
	}
	
	public UserSpecialtyPK getPrimaryKey() {
		return primaryKey;
	}
	
	public void setUid(String uid) {
		primaryKey.setUid(uid);
	}
	
	public String getUid() {
		return primaryKey.getUid();
	}
	
	public void setSpecialty(Specialty specialty) {
		primaryKey.setSpecialty(specialty);
	}
	
	public Specialty getSpecialty() {
		return primaryKey.getSpecialty();
	}
	
	public void setYear(long year) {
		primaryKey.setYear(year);
	}
	

	
	public long getYear() {
		return primaryKey.getYear();
	}
}
